how to solve problems based on surds and indices